<template>
    <view>
        <view style="padding: 30rpx">
            <text>{{ yinsiWenzi }}</text>
        </view>
    </view>
</template>
<script>
import { APP_APPID } from '@/utils/constant';
import { request } from '@/utils/index.js';
export default {
    data() {
        return {
            yinsiWenzi: '',
            type: '' //首页隐私弹窗点击用户协议和隐私协议传来的type，1：用户协议     2：隐私政策  3：信息授权
        };
    },
    onLoad(e) {
        // this.type=e.type
        this.getYinsiText(e.type);
    },
    methods: {
        getYinsiText(type) {
            request(
                'order/mall/liteUserOrders/findBusinessContract7',
                {
                    appId: APP_APPID,
                    platform: type == 1 ? '8' : type == 2 ? '9' : '10'
                    // type:this.type
                },
                'get',
                false
            ).then((res) => {
                if (res.data.yinsistr) {
                    this.yinsiWenzi = res.data.yinsistr;
                }
            });
        }
    }
};
</script>

<style lang="scss" scoped>
.status_bar {
    // height: var(--status-bar-height);
    // height: 100px;
    width: 100%;
    position: sticky;
    top: 0;
    // left: 0;
    z-index: 999;;

    lifestyle {
        position: absolute;
        bottom: 30rpx;
        left: 50%;
        transform: translateX(-50%);
    }

    .topTitle {
        position: absolute;
        top: 58px;
        left: 36px;
        font-size: 36rpx;
        font-weight: 900;
        font-family: 'Arial';
    }
}
</style>
